<?php require '../public/system/headers/headers.php';?>
<?php echo $this->headLink()->appendStylesheet($this->websiteUrl . 'system/css/seotoaster.css'); ?>
<?php echo $this->headScript()->appendFile($this->websiteUrl . 'system/js/jquery/jquery.js'); ?>
<script type="text/javascript">
function loadImages(folder)
{
    $.ajax({
        type : 'POST',
        url : '<?php echo $this->websiteUrl; ?>sys/backend_shopping/loadimages/',
        data : {folder : folder},
        success : function(data) {
            var obj = eval('('+data+')');
            $('#list_images').html(obj.small.replace(/shop./g, ''));
            $('#list_images').show('700');
        }
    });
}
function selectImage(path)
{
    src = path.replace('<?php echo $this->websiteUrl; ?>', '');
    $('#company-logo').val(src);
    $('.logo').attr('src', path);
    $('#list_images').hide('700');
}
</script>
<div id="seotoaster" class="shoppingconfig">
<div class="admineditwhat">{%Shopping Config%} </div>
<div class="close_window" onclick="parent.tb_remove();"></div>
<?php if ($this->error) : ?>
<div id="message" class="errors" style="background-color:red;" onclick="this.style.display='none';">{%Corrupted data detected. Configuration not updated%}.</div>
<?php endif; ?>
<?php if ($this->update) : ?>
<div id="message" class="errors" style="background-color:green;" onclick="this.style.display='none';">{%Configuration updated%}.</div>
<?php endif; ?>
<div id="list_images"></div>
<form action="<?php echo $this->websiteUrl; ?>sys/backend_shopping/config/" name="saveconfig" id="saveconfig" method="post" enctype="multipart/form-data">
    <div class="block1">
      <fieldset style="background-color:#fff; text-align:center;"><legend>{%Company Logo%}</legend>
	   <div id="company_logo" style="overflow: visible;">
<select id="image_folders" style="width:150px;" onchange="loadImages(this.options[this.selectedIndex].value);">
                <option value="" selected="selected">select folder</option>
                <?php if(!empty($this->listFolders) && is_array($this->listFolders)): ?>
                    <?php foreach($this->listFolders as $folderName): ?>
                     <option value="<?php echo trim($folderName); ?>"><?php echo $folderName; ?></option>
                    <?php endforeach; ?>
                <?php endif; ?>
            </select>
			<input type="hidden" name="company-logo" id="company-logo"  value="<?php echo $this->shoppingConfig['company_logo']; ?>" />      
		   <div style="clear:both;"></div>
		    <img src="<?php echo $this->logoCompany !='' ? $this->logoCompany : $this->websiteUrl.'system/images/noimage.png'; ?>" alt="<?php echo $this->logoCompany; ?>" class="logo" border="0"> 
		</div>
		</fieldset>
			
	    <fieldset><legend>{%Business Information%}</legend>
		<p><label>{%Company%}:</label><input type="text" value="<?php echo $this->shoppingConfig['company']; ?>" name="company" id="company" /></p>
        <p><label>{%Phone%}:</label><input type="text" value="<?php echo $this->shoppingConfig['phone']; ?>" name="phone" id="phone" /></p>
        <p><label>{%Email%}:</label><input type="text" value="<?php echo $this->shoppingConfig['email']; ?>" name="email" id="email" /></p>
        <p><label>{%Address1%}:</label><input type="text" value="<?php echo $this->shoppingConfig['address']; ?>" name="address" id="address" /></p>
        <p><label>{%Address2%}:</label><input type="text" value="<?php echo $this->shoppingConfig['address2']; ?>" name="address2" id="address2" /></p>
        <div style="overflow:hidden;padding:2px;">
            <label style="margin:0px 5px 0px 0px;">{%City:%}</label> <input type="text" value="<?php echo $this->shoppingConfig['city']; ?>" name="city" id="city" style="height:23px;width:140px;padding:2px 3px"/>
            <label style="margin:0px 5px 0px 10px;">{%State:%}</label>
		<select id="state" name="state" style="color:#7c7c7c;margin-left:3px;width:70px;">
                    <option value=""<?php echo ($this->shoppingConfig['state']==''?' selected="selected"':''); ?>>{%State%}</option>
                    <option value="AK"<?php echo ($this->shoppingConfig['state']=='AK'?' selected="selected"':''); ?>>AK</option>
                    <option value="AL"<?php echo ($this->shoppingConfig['state']=='AL'?' selected="selected"':''); ?>>AL</option>
                    <option value="AR"<?php echo ($this->shoppingConfig['state']=='AR'?' selected="selected"':''); ?>>AR</option>
                    <option value="AZ"<?php echo ($this->shoppingConfig['state']=='AZ'?' selected="selected"':''); ?>>AZ</option>
                    <option value="CA"<?php echo ($this->shoppingConfig['state']=='CA'?' selected="selected"':''); ?>>CA</option>
                    <option value="CO"<?php echo ($this->shoppingConfig['state']=='CO'?' selected="selected"':''); ?>>CO</option>
                    <option value="CT"<?php echo ($this->shoppingConfig['state']=='CT'?' selected="selected"':''); ?>>CT</option>
                    <option value="DC"<?php echo ($this->shoppingConfig['state']=='DC'?' selected="selected"':''); ?>>DC</option>
                    <option value="DE"<?php echo ($this->shoppingConfig['state']=='DE'?' selected="selected"':''); ?>>DE</option>
                    <option value="FL"<?php echo ($this->shoppingConfig['state']=='FL'?' selected="selected"':''); ?>>FL</option>
                    <option value="GA"<?php echo ($this->shoppingConfig['state']=='GA'?' selected="selected"':''); ?>>GA</option>
                    <option value="HI"<?php echo ($this->shoppingConfig['state']=='HI'?' selected="selected"':''); ?>>HI</option>
                    <option value="IA"<?php echo ($this->shoppingConfig['state']=='IA'?' selected="selected"':''); ?>>IA</option>
                    <option value="ID"<?php echo ($this->shoppingConfig['state']=='ID'?' selected="selected"':''); ?>>ID</option>
                    <option value="IL"<?php echo ($this->shoppingConfig['state']=='IL'?' selected="selected"':''); ?>>IL</option>
                    <option value="IN"<?php echo ($this->shoppingConfig['state']=='IN'?' selected="selected"':''); ?>>IN</option>
                    <option value="KS"<?php echo ($this->shoppingConfig['state']=='KS'?' selected="selected"':''); ?>>KS</option>
                    <option value="KY"<?php echo ($this->shoppingConfig['state']=='KY'?' selected="selected"':''); ?>>KY</option>
                    <option value="LA"<?php echo ($this->shoppingConfig['state']=='LA'?' selected="selected"':''); ?>>LA</option>
                    <option value="MA"<?php echo ($this->shoppingConfig['state']=='MA'?' selected="selected"':''); ?>>MA</option>
                    <option value="MD"<?php echo ($this->shoppingConfig['state']=='MD'?' selected="selected"':''); ?>>MD</option>
                    <option value="ME"<?php echo ($this->shoppingConfig['state']=='ME'?' selected="selected"':''); ?>>ME</option>
                    <option value="MI"<?php echo ($this->shoppingConfig['state']=='MI'?' selected="selected"':''); ?>>MI</option>
                    <option value="MN"<?php echo ($this->shoppingConfig['state']=='MN'?' selected="selected"':''); ?>>MN</option>
                    <option value="MO"<?php echo ($this->shoppingConfig['state']=='MO'?' selected="selected"':''); ?>>MO</option>
                    <option value="MS"<?php echo ($this->shoppingConfig['state']=='MS'?' selected="selected"':''); ?>>MS</option>
                    <option value="MT"<?php echo ($this->shoppingConfig['state']=='MT'?' selected="selected"':''); ?>>MT</option>
                    <option value="NC"<?php echo ($this->shoppingConfig['state']=='NC'?' selected="selected"':''); ?>>NC</option>
                    <option value="ND"<?php echo ($this->shoppingConfig['state']=='ND'?' selected="selected"':''); ?>>ND</option>
                    <option value="NE"<?php echo ($this->shoppingConfig['state']=='NE'?' selected="selected"':''); ?>>NE</option>
                    <option value="NH"<?php echo ($this->shoppingConfig['state']=='NH'?' selected="selected"':''); ?>>NH</option>
                    <option value="NJ"<?php echo ($this->shoppingConfig['state']=='NJ'?' selected="selected"':''); ?>>NJ</option>
                    <option value="NM"<?php echo ($this->shoppingConfig['state']=='NM'?' selected="selected"':''); ?>>NM</option>
                    <option value="NV"<?php echo ($this->shoppingConfig['state']=='NV'?' selected="selected"':''); ?>>NV</option>
                    <option value="NY"<?php echo ($this->shoppingConfig['state']=='NY'?' selected="selected"':''); ?>>NY</option>
                    <option value="OH"<?php echo ($this->shoppingConfig['state']=='OH'?' selected="selected"':''); ?>>OH</option>
                    <option value="OK"<?php echo ($this->shoppingConfig['state']=='OK'?' selected="selected"':''); ?>>OK</option>
                    <option value="OR"<?php echo ($this->shoppingConfig['state']=='OR'?' selected="selected"':''); ?>>OR</option>
                    <option value="PA"<?php echo ($this->shoppingConfig['state']=='PA'?' selected="selected"':''); ?>>PA</option>
                    <option value="RI"<?php echo ($this->shoppingConfig['state']=='RI'?' selected="selected"':''); ?>>RI</option>
                    <option value="SC"<?php echo ($this->shoppingConfig['state']=='SC'?' selected="selected"':''); ?>>SC</option>
                    <option value="SD"<?php echo ($this->shoppingConfig['state']=='SD'?' selected="selected"':''); ?>>SD</option>
                    <option value="TN"<?php echo ($this->shoppingConfig['state']=='TN'?' selected="selected"':''); ?>>TN</option>
                    <option value="TX"<?php echo ($this->shoppingConfig['state']=='TX'?' selected="selected"':''); ?>>TX</option>
                    <option value="UT"<?php echo ($this->shoppingConfig['state']=='UT'?' selected="selected"':''); ?>>UT</option>
                    <option value="VA"<?php echo ($this->shoppingConfig['state']=='VA'?' selected="selected"':''); ?>>VA</option>
                    <option value="VT"<?php echo ($this->shoppingConfig['state']=='VT'?' selected="selected"':''); ?>>VT</option>
                    <option value="WA"<?php echo ($this->shoppingConfig['state']=='WA'?' selected="selected"':''); ?>>WA</option>
                    <option value="WI"<?php echo ($this->shoppingConfig['state']=='WI'?' selected="selected"':''); ?>>WI</option>
                    <option value="WV"<?php echo ($this->shoppingConfig['state']=='WV'?' selected="selected"':''); ?>>WV</option>
                    <option value="WY"<?php echo ($this->shoppingConfig['state']=='WY'?' selected="selected"':''); ?>>WY</option>
                    <option value="AA"<?php echo ($this->shoppingConfig['state']=='AA'?' selected="selected"':''); ?>>AA</option>
                    <option value="AE"<?php echo ($this->shoppingConfig['state']=='AE'?' selected="selected"':''); ?>>AE</option>
                    <option value="AP"<?php echo ($this->shoppingConfig['state']=='AP'?' selected="selected"':''); ?>>AP</option>
                    <option value="AS"<?php echo ($this->shoppingConfig['state']=='AS'?' selected="selected"':''); ?>>AS</option>
                    <option value="FM"<?php echo ($this->shoppingConfig['state']=='FM'?' selected="selected"':''); ?>>FM</option>
                    <option value="GU"<?php echo ($this->shoppingConfig['state']=='GU'?' selected="selected"':''); ?>>GU</option>
                    <option value="MH"<?php echo ($this->shoppingConfig['state']=='MH'?' selected="selected"':''); ?>>MH</option>
                    <option value="MP"<?php echo ($this->shoppingConfig['state']=='MP'?' selected="selected"':''); ?>>MP</option>
                    <option value="PR"<?php echo ($this->shoppingConfig['state']=='PR'?' selected="selected"':''); ?>>PR</option>
                    <option value="PW"<?php echo ($this->shoppingConfig['state']=='PW'?' selected="selected"':''); ?>>PW</option>
                    <option value="VI"<?php echo ($this->shoppingConfig['state']=='VI'?' selected="selected"':''); ?>>VI</option>
                </select>

                
             </div>
        <div style="overflow:hidden;margin-top:2px;padding:2px;">
		<label style="margin:0px 5px 0px 5px;">{%Zip%}:</label>
                <input type="text" value="<?php echo $this->shoppingConfig['zip']; ?>" name="zip" id="zip" style="height:23px;width:90px;padding:2px 3px;"/>

            <label style="margin:0px 5px 0px 10px;">{%Country:%}</label>
            <select id="country" name="country" style="width:150px;">
                <option value=""<?php echo ($this->shoppingConfig['country']==''?' selected="selected"':''); ?>> </option>
                <option value="US"<?php echo ($this->shoppingConfig['country']=='US'?' selected="selected"':''); ?>>United States</option>
                <option value="AL"<?php echo ($this->shoppingConfig['country']=='AL'?' selected="selected"':''); ?>>Albania</option>
                <option value="DZ"<?php echo ($this->shoppingConfig['country']=='DZ'?' selected="selected"':''); ?>>Algeria</option>
                <option value="AD"<?php echo ($this->shoppingConfig['country']=='AD'?' selected="selected"':''); ?>>Andorra</option>
                <option value="AO"<?php echo ($this->shoppingConfig['country']=='AO'?' selected="selected"':''); ?>>Angola</option>
                <option value="AI"<?php echo ($this->shoppingConfig['country']=='AI'?' selected="selected"':''); ?>>Anguilla</option>
                <option value="AG"<?php echo ($this->shoppingConfig['country']=='AG'?' selected="selected"':''); ?>>Antigua and Barbuda</option>
                <option value="AR"<?php echo ($this->shoppingConfig['country']=='AR'?' selected="selected"':''); ?>>Argentina</option>
                <option value="AM"<?php echo ($this->shoppingConfig['country']=='AM'?' selected="selected"':''); ?>>Armenia</option>
                <option value="AW"<?php echo ($this->shoppingConfig['country']=='AW'?' selected="selected"':''); ?>>Aruba</option>
                <option value="AU"<?php echo ($this->shoppingConfig['country']=='AU'?' selected="selected"':''); ?>>Australia</option>
                <option value="AT"<?php echo ($this->shoppingConfig['country']=='AT'?' selected="selected"':''); ?>>Austria</option>
                <option value="AZ"<?php echo ($this->shoppingConfig['country']=='AZ'?' selected="selected"':''); ?>>Azerbaijan Republic</option>
                <option value="BS"<?php echo ($this->shoppingConfig['country']=='BS'?' selected="selected"':''); ?>>Bahamas</option>
                <option value="BH"<?php echo ($this->shoppingConfig['country']=='BH'?' selected="selected"':''); ?>>Bahrain</option>
                <option value="BB"<?php echo ($this->shoppingConfig['country']=='BB'?' selected="selected"':''); ?>>Barbados</option>
                <option value="BE"<?php echo ($this->shoppingConfig['country']=='BE'?' selected="selected"':''); ?>>Belgium</option>
                <option value="BZ"<?php echo ($this->shoppingConfig['country']=='BZ'?' selected="selected"':''); ?>>Belize</option>
                <option value="BJ"<?php echo ($this->shoppingConfig['country']=='BJ'?' selected="selected"':''); ?>>Benin</option>
                <option value="BM"<?php echo ($this->shoppingConfig['country']=='BM'?' selected="selected"':''); ?>>Bermuda</option>
                <option value="BT"<?php echo ($this->shoppingConfig['country']=='BT'?' selected="selected"':''); ?>>Bhutan</option>
                <option value="BO"<?php echo ($this->shoppingConfig['country']=='BO'?' selected="selected"':''); ?>>Bolivia</option>
                <option value="BA"<?php echo ($this->shoppingConfig['country']=='BA'?' selected="selected"':''); ?>>Bosnia and Herzegovina</option>
                <option value="BW"<?php echo ($this->shoppingConfig['country']=='BW'?' selected="selected"':''); ?>>Botswana</option>
                <option value="BR"<?php echo ($this->shoppingConfig['country']=='BR'?' selected="selected"':''); ?>>Brazil</option>
                <option value="VG"<?php echo ($this->shoppingConfig['country']=='VG'?' selected="selected"':''); ?>>British Virgin Islands</option>
                <option value="BN"<?php echo ($this->shoppingConfig['country']=='BN'?' selected="selected"':''); ?>>Brunei</option>
                <option value="BG"<?php echo ($this->shoppingConfig['country']=='BG'?' selected="selected"':''); ?>>Bulgaria</option>
                <option value="BF"<?php echo ($this->shoppingConfig['country']=='BF'?' selected="selected"':''); ?>>Burkina Faso</option>
                <option value="BI"<?php echo ($this->shoppingConfig['country']=='BI'?' selected="selected"':''); ?>>Burundi</option>
                <option value="KH"<?php echo ($this->shoppingConfig['country']=='KH'?' selected="selected"':''); ?>>Cambodia</option>
                <option value="CA"<?php echo ($this->shoppingConfig['country']=='CA'?' selected="selected"':''); ?>>Canada</option>
                <option value="CV"<?php echo ($this->shoppingConfig['country']=='CV'?' selected="selected"':''); ?>>Cape Verde</option>
                <option value="KY"<?php echo ($this->shoppingConfig['country']=='KY'?' selected="selected"':''); ?>>Cayman Islands</option>
                <option value="TD"<?php echo ($this->shoppingConfig['country']=='TD'?' selected="selected"':''); ?>>Chad</option>
                <option value="CL"<?php echo ($this->shoppingConfig['country']=='CL'?' selected="selected"':''); ?>>Chile</option>
                <option value="C2"<?php echo ($this->shoppingConfig['country']=='C2'?' selected="selected"':''); ?>>China</option>
                <option value="CO"<?php echo ($this->shoppingConfig['country']=='CO'?' selected="selected"':''); ?>>Colombia</option>
                <option value="KM"<?php echo ($this->shoppingConfig['country']=='KM'?' selected="selected"':''); ?>>Comoros</option>
                <option value="CK"<?php echo ($this->shoppingConfig['country']=='CK'?' selected="selected"':''); ?>>Cook Islands</option>
                <option value="CR"<?php echo ($this->shoppingConfig['country']=='CR'?' selected="selected"':''); ?>>Costa Rica</option>
                <option value="HR"<?php echo ($this->shoppingConfig['country']=='HR'?' selected="selected"':''); ?>>Croatia</option>
                <option value="CY"<?php echo ($this->shoppingConfig['country']=='CY'?' selected="selected"':''); ?>>Cyprus</option>
                <option value="CZ"<?php echo ($this->shoppingConfig['country']=='CZ'?' selected="selected"':''); ?>>Czech Republic</option>
                <option value="CD"<?php echo ($this->shoppingConfig['country']=='CD'?' selected="selected"':''); ?>>Democratic Republic of the Congo</option>
                <option value="DK"<?php echo ($this->shoppingConfig['country']=='DK'?' selected="selected"':''); ?>>Denmark</option>
                <option value="DJ"<?php echo ($this->shoppingConfig['country']=='DJ'?' selected="selected"':''); ?>>Djibouti</option>
                <option value="DM"<?php echo ($this->shoppingConfig['country']=='DM'?' selected="selected"':''); ?>>Dominica</option>
                <option value="DO"<?php echo ($this->shoppingConfig['country']=='DO'?' selected="selected"':''); ?>>Dominican Republic</option>
                <option value="EC"<?php echo ($this->shoppingConfig['country']=='EC'?' selected="selected"':''); ?>>Ecuador</option>
                <option value="SV"<?php echo ($this->shoppingConfig['country']=='SV'?' selected="selected"':''); ?>>El Salvador</option>
                <option value="ER"<?php echo ($this->shoppingConfig['country']=='ER'?' selected="selected"':''); ?>>Eritrea</option>
                <option value="EE"<?php echo ($this->shoppingConfig['country']=='EE'?' selected="selected"':''); ?>>Estonia</option>
                <option value="ET"<?php echo ($this->shoppingConfig['country']=='ET'?' selected="selected"':''); ?>>Ethiopia</option>
                <option value="FK"<?php echo ($this->shoppingConfig['country']=='FK'?' selected="selected"':''); ?>>Falkland Islands</option>
                <option value="FO"<?php echo ($this->shoppingConfig['country']=='FO'?' selected="selected"':''); ?>>Faroe Islands</option>
                <option value="FM"<?php echo ($this->shoppingConfig['country']=='FM'?' selected="selected"':''); ?>>Federated States of Micronesia</option>
                <option value="FJ"<?php echo ($this->shoppingConfig['country']=='FJ'?' selected="selected"':''); ?>>Fiji</option>
                <option value="FI"<?php echo ($this->shoppingConfig['country']=='FI'?' selected="selected"':''); ?>>Finland</option>
                <option value="FR"<?php echo ($this->shoppingConfig['country']=='FR'?' selected="selected"':''); ?>>France</option>
                <option value="GF"<?php echo ($this->shoppingConfig['country']=='GF'?' selected="selected"':''); ?>>French Guiana</option>
                <option value="PF"<?php echo ($this->shoppingConfig['country']=='PF'?' selected="selected"':''); ?>>French Polynesia</option>
                <option value="GA"<?php echo ($this->shoppingConfig['country']=='GA'?' selected="selected"':''); ?>>Gabon Republic</option>
                <option value="GM"<?php echo ($this->shoppingConfig['country']=='GM'?' selected="selected"':''); ?>>Gambia</option>
                <option value="DE"<?php echo ($this->shoppingConfig['country']=='DE'?' selected="selected"':''); ?>>Germany</option>
                <option value="GI"<?php echo ($this->shoppingConfig['country']=='GI'?' selected="selected"':''); ?>>Gibraltar</option>
                <option value="GR"<?php echo ($this->shoppingConfig['country']=='GR'?' selected="selected"':''); ?>>Greece</option>
                <option value="GL"<?php echo ($this->shoppingConfig['country']=='GL'?' selected="selected"':''); ?>>Greenland</option>
                <option value="GD"<?php echo ($this->shoppingConfig['country']=='GD'?' selected="selected"':''); ?>>Grenada</option>
                <option value="GP"<?php echo ($this->shoppingConfig['country']=='GP'?' selected="selected"':''); ?>>Guadeloupe</option>
                <option value="GT"<?php echo ($this->shoppingConfig['country']=='GT'?' selected="selected"':''); ?>>Guatemala</option>
                <option value="GN"<?php echo ($this->shoppingConfig['country']=='GN'?' selected="selected"':''); ?>>Guinea</option>
                <option value="GW"<?php echo ($this->shoppingConfig['country']=='GW'?' selected="selected"':''); ?>>Guinea Bissau</option>
                <option value="GY"<?php echo ($this->shoppingConfig['country']=='GY'?' selected="selected"':''); ?>>Guyana</option>
                <option value="HN"<?php echo ($this->shoppingConfig['country']=='HN'?' selected="selected"':''); ?>>Honduras</option>
                <option value="HK"<?php echo ($this->shoppingConfig['country']=='HK'?' selected="selected"':''); ?>>Hong Kong</option>
                <option value="HU"<?php echo ($this->shoppingConfig['country']=='HU'?' selected="selected"':''); ?>>Hungary</option>
                <option value="IS"<?php echo ($this->shoppingConfig['country']=='IS'?' selected="selected"':''); ?>>Iceland</option>
                <option value="IN"<?php echo ($this->shoppingConfig['country']=='IN'?' selected="selected"':''); ?>>India</option>
                <option value="ID"<?php echo ($this->shoppingConfig['country']=='ID'?' selected="selected"':''); ?>>Indonesia</option>
                <option value="IE"<?php echo ($this->shoppingConfig['country']=='IE'?' selected="selected"':''); ?>>Ireland</option>
                <option value="IL"<?php echo ($this->shoppingConfig['country']=='IL'?' selected="selected"':''); ?>>Israel</option>
                <option value="IT"<?php echo ($this->shoppingConfig['country']=='IT'?' selected="selected"':''); ?>>Italy</option>
                <option value="JM"<?php echo ($this->shoppingConfig['country']=='JM'?' selected="selected"':''); ?>>Jamaica</option>
                <option value="JP"<?php echo ($this->shoppingConfig['country']=='JP'?' selected="selected"':''); ?>>Japan</option>
                <option value="JO"<?php echo ($this->shoppingConfig['country']=='JO'?' selected="selected"':''); ?>>Jordan</option>
                <option value="KZ"<?php echo ($this->shoppingConfig['country']=='KZ'?' selected="selected"':''); ?>>Kazakhstan</option>
                <option value="KE"<?php echo ($this->shoppingConfig['country']=='KE'?' selected="selected"':''); ?>>Kenya</option>
                <option value="KI"<?php echo ($this->shoppingConfig['country']=='KI'?' selected="selected"':''); ?>>Kiribati</option>
                <option value="KW"<?php echo ($this->shoppingConfig['country']=='KW'?' selected="selected"':''); ?>>Kuwait</option>
                <option value="KG"<?php echo ($this->shoppingConfig['country']=='KG'?' selected="selected"':''); ?>>Kyrgyzstan</option>
                <option value="LA"<?php echo ($this->shoppingConfig['country']=='LA'?' selected="selected"':''); ?>>Laos</option>
                <option value="LV"<?php echo ($this->shoppingConfig['country']=='LV'?' selected="selected"':''); ?>>Latvia</option>
                <option value="LS"<?php echo ($this->shoppingConfig['country']=='LS'?' selected="selected"':''); ?>>Lesotho</option>
                <option value="LI"<?php echo ($this->shoppingConfig['country']=='LI'?' selected="selected"':''); ?>>Liechtenstein</option>
                <option value="LT"<?php echo ($this->shoppingConfig['country']=='LT'?' selected="selected"':''); ?>>Lithuania</option>
                <option value="LU"<?php echo ($this->shoppingConfig['country']=='LU'?' selected="selected"':''); ?>>Luxembourg</option>
                <option value="MG"<?php echo ($this->shoppingConfig['country']=='MG'?' selected="selected"':''); ?>>Madagascar</option>
                <option value="MW"<?php echo ($this->shoppingConfig['country']=='MW'?' selected="selected"':''); ?>>Malawi</option>
                <option value="MY"<?php echo ($this->shoppingConfig['country']=='MY'?' selected="selected"':''); ?>>Malaysia</option>
                <option value="MV"<?php echo ($this->shoppingConfig['country']=='MV'?' selected="selected"':''); ?>>Maldives</option>
                <option value="ML"<?php echo ($this->shoppingConfig['country']=='ML'?' selected="selected"':''); ?>>Mali</option>
                <option value="MT"<?php echo ($this->shoppingConfig['country']=='ML'?' selected="selected"':''); ?>>Malta</option>
                <option value="MH"<?php echo ($this->shoppingConfig['country']=='MH'?' selected="selected"':''); ?>>Marshall Islands</option>
                <option value="MQ"<?php echo ($this->shoppingConfig['country']=='MQ'?' selected="selected"':''); ?>>Martinique</option>
                <option value="MR"<?php echo ($this->shoppingConfig['country']=='MR'?' selected="selected"':''); ?>>Mauritania</option>
                <option value="MU"<?php echo ($this->shoppingConfig['country']=='MU'?' selected="selected"':''); ?>>Mauritius</option>
                <option value="YT"<?php echo ($this->shoppingConfig['country']=='YT'?' selected="selected"':''); ?>>Mayotte</option>
                <option value="MX"<?php echo ($this->shoppingConfig['country']=='MX'?' selected="selected"':''); ?>>Mexico</option>
                <option value="MN"<?php echo ($this->shoppingConfig['country']=='MN'?' selected="selected"':''); ?>>Mongolia</option>
                <option value="MS"<?php echo ($this->shoppingConfig['country']=='MS'?' selected="selected"':''); ?>>Montserrat</option>
                <option value="MA"<?php echo ($this->shoppingConfig['country']=='MA'?' selected="selected"':''); ?>>Morocco</option>
                <option value="MZ"<?php echo ($this->shoppingConfig['country']=='MZ'?' selected="selected"':''); ?>>Mozambique</option>
                <option value="NA"<?php echo ($this->shoppingConfig['country']=='NA'?' selected="selected"':''); ?>>Namibia</option>
                <option value="NR"<?php echo ($this->shoppingConfig['country']=='NR'?' selected="selected"':''); ?>>Nauru</option>
                <option value="NP"<?php echo ($this->shoppingConfig['country']=='NP'?' selected="selected"':''); ?>>Nepal</option>
                <option value="NL"<?php echo ($this->shoppingConfig['country']=='NL'?' selected="selected"':''); ?>>Netherlands</option>
                <option value="AN"<?php echo ($this->shoppingConfig['country']=='AN'?' selected="selected"':''); ?>>Netherlands Antilles</option>
                <option value="NC"<?php echo ($this->shoppingConfig['country']=='NC'?' selected="selected"':''); ?>>New Caledonia</option>
                <option value="NZ"<?php echo ($this->shoppingConfig['country']=='NZ'?' selected="selected"':''); ?>>New Zealand</option>
                <option value="NI"<?php echo ($this->shoppingConfig['country']=='NI'?' selected="selected"':''); ?>>Nicaragua</option>
                <option value="NE"<?php echo ($this->shoppingConfig['country']=='NE'?' selected="selected"':''); ?>>Niger</option>
                <option value="NU"<?php echo ($this->shoppingConfig['country']=='NU'?' selected="selected"':''); ?>>Niue</option>
                <option value="NF"<?php echo ($this->shoppingConfig['country']=='NF'?' selected="selected"':''); ?>>Norfolk Island</option>
                <option value="NO"<?php echo ($this->shoppingConfig['country']=='NO'?' selected="selected"':''); ?>>Norway</option>
                <option value="OM"<?php echo ($this->shoppingConfig['country']=='OM'?' selected="selected"':''); ?>>Oman</option>
                <option value="PW"<?php echo ($this->shoppingConfig['country']=='PW'?' selected="selected"':''); ?>>Palau</option>
                <option value="PA"<?php echo ($this->shoppingConfig['country']=='PA'?' selected="selected"':''); ?>>Panama</option>
                <option value="PG"<?php echo ($this->shoppingConfig['country']=='PG'?' selected="selected"':''); ?>>Papua New Guinea</option>
                <option value="PE"<?php echo ($this->shoppingConfig['country']=='PE'?' selected="selected"':''); ?>>Peru</option>
                <option value="PH"<?php echo ($this->shoppingConfig['country']=='PH'?' selected="selected"':''); ?>>Philippines</option>
                <option value="PN"<?php echo ($this->shoppingConfig['country']=='PN'?' selected="selected"':''); ?>>Pitcairn Islands</option>
                <option value="PL"<?php echo ($this->shoppingConfig['country']=='PL'?' selected="selected"':''); ?>>Poland</option>
                <option value="PT"<?php echo ($this->shoppingConfig['country']=='PT'?' selected="selected"':''); ?>>Portugal</option>
                <option value="QA"<?php echo ($this->shoppingConfig['country']=='QA'?' selected="selected"':''); ?>>Qatar</option>
                <option value="CG"<?php echo ($this->shoppingConfig['country']=='CG'?' selected="selected"':''); ?>>Republic of the Congo</option>
                <option value="RE"<?php echo ($this->shoppingConfig['country']=='RE'?' selected="selected"':''); ?>>Reunion</option>
                <option value="RO"<?php echo ($this->shoppingConfig['country']=='RO'?' selected="selected"':''); ?>>Romania</option>
                <option value="RU"<?php echo ($this->shoppingConfig['country']=='RU'?' selected="selected"':''); ?>>Russia</option>
                <option value="RW"<?php echo ($this->shoppingConfig['country']=='RW'?' selected="selected"':''); ?>>Rwanda</option>
                <option value="VC"<?php echo ($this->shoppingConfig['country']=='VC'?' selected="selected"':''); ?>>Saint Vincent and the Grenadines</option>
                <option value="WS"<?php echo ($this->shoppingConfig['country']=='WS'?' selected="selected"':''); ?>>Samoa</option>
                <option value="SM"<?php echo ($this->shoppingConfig['country']=='SM'?' selected="selected"':''); ?>>San Marino</option>
                <option value="ST"<?php echo ($this->shoppingConfig['country']=='ST'?' selected="selected"':''); ?>>São Tomé and Príncipe</option>
                <option value="SA"<?php echo ($this->shoppingConfig['country']=='SA'?' selected="selected"':''); ?>>Saudi Arabia</option>
                <option value="SN"<?php echo ($this->shoppingConfig['country']=='SN'?' selected="selected"':''); ?>>Senegal</option>
                <option value="SC"<?php echo ($this->shoppingConfig['country']=='SC'?' selected="selected"':''); ?>>Seychelles</option>
                <option value="SL"<?php echo ($this->shoppingConfig['country']=='SL'?' selected="selected"':''); ?>>Sierra Leone</option>
                <option value="SG"<?php echo ($this->shoppingConfig['country']=='SG'?' selected="selected"':''); ?>>Singapore</option>
                <option value="SK"<?php echo ($this->shoppingConfig['country']=='SK'?' selected="selected"':''); ?>>Slovakia</option>
                <option value="SI"<?php echo ($this->shoppingConfig['country']=='SI'?' selected="selected"':''); ?>>Slovenia</option>
                <option value="SB"<?php echo ($this->shoppingConfig['country']=='SB'?' selected="selected"':''); ?>>Solomon Islands</option>
                <option value="SO"<?php echo ($this->shoppingConfig['country']=='SO'?' selected="selected"':''); ?>>Somalia</option>
                <option value="ZA"<?php echo ($this->shoppingConfig['country']=='ZA'?' selected="selected"':''); ?>>South Africa</option>
                <option value="KR"<?php echo ($this->shoppingConfig['country']=='KR'?' selected="selected"':''); ?>>South Korea</option>
                <option value="ES"<?php echo ($this->shoppingConfig['country']=='ES'?' selected="selected"':''); ?>>Spain</option>
                <option value="LK"<?php echo ($this->shoppingConfig['country']=='LK'?' selected="selected"':''); ?>>Sri Lanka</option>
                <option value="SH"<?php echo ($this->shoppingConfig['country']=='SH'?' selected="selected"':''); ?>>St. Helena</option>
                <option value="KN"<?php echo ($this->shoppingConfig['country']=='KN'?' selected="selected"':''); ?>>St. Kitts and Nevis</option>
                <option value="LC"<?php echo ($this->shoppingConfig['country']=='LC'?' selected="selected"':''); ?>>St. Lucia</option>
                <option value="PM"<?php echo ($this->shoppingConfig['country']=='PM'?' selected="selected"':''); ?>>St. Pierre and Miquelon</option>
                <option value="SR"<?php echo ($this->shoppingConfig['country']=='SR'?' selected="selected"':''); ?>>Suriname</option>
                <option value="SJ"<?php echo ($this->shoppingConfig['country']=='SJ'?' selected="selected"':''); ?>>Svalbard and Jan Mayen Islands</option>
                <option value="SZ"<?php echo ($this->shoppingConfig['country']=='SZ'?' selected="selected"':''); ?>>Swaziland</option>
                <option value="SE"<?php echo ($this->shoppingConfig['country']=='SE'?' selected="selected"':''); ?>>Sweden</option>
                <option value="CH"<?php echo ($this->shoppingConfig['country']=='CH'?' selected="selected"':''); ?>>Switzerland</option>
                <option value="TW"<?php echo ($this->shoppingConfig['country']=='TW'?' selected="selected"':''); ?>>Taiwan</option>
                <option value="TJ"<?php echo ($this->shoppingConfig['country']=='TJ'?' selected="selected"':''); ?>>Tajikistan</option>
                <option value="TZ"<?php echo ($this->shoppingConfig['country']=='TZ'?' selected="selected"':''); ?>>Tanzania</option>
                <option value="TH"<?php echo ($this->shoppingConfig['country']=='TH'?' selected="selected"':''); ?>>Thailand</option>
                <option value="TG"<?php echo ($this->shoppingConfig['country']=='TG'?' selected="selected"':''); ?>>Togo</option>
                <option value="TO"<?php echo ($this->shoppingConfig['country']=='TO'?' selected="selected"':''); ?>>Tonga</option>
                <option value="TT"<?php echo ($this->shoppingConfig['country']=='TT'?' selected="selected"':''); ?>>Trinidad and Tobago</option>
                <option value="TN"<?php echo ($this->shoppingConfig['country']=='TN'?' selected="selected"':''); ?>>Tunisia</option>
                <option value="TR"<?php echo ($this->shoppingConfig['country']=='TR'?' selected="selected"':''); ?>>Turkey</option>
                <option value="TM"<?php echo ($this->shoppingConfig['country']=='TM'?' selected="selected"':''); ?>>Turkmenistan</option>
                <option value="TC"<?php echo ($this->shoppingConfig['country']=='TC'?' selected="selected"':''); ?>>Turks and Caicos Islands</option>
                <option value="TV"<?php echo ($this->shoppingConfig['country']=='TV'?' selected="selected"':''); ?>>Tuvalu</option>
                <option value="UG"<?php echo ($this->shoppingConfig['country']=='UG'?' selected="selected"':''); ?>>Uganda</option>
                <option value="UA"<?php echo ($this->shoppingConfig['country']=='UA'?' selected="selected"':''); ?>>Ukraine</option>
                <option value="AE"<?php echo ($this->shoppingConfig['country']=='AE'?' selected="selected"':''); ?>>United Arab Emirates</option>
                <option value="GB"<?php echo ($this->shoppingConfig['country']=='GB'?' selected="selected"':''); ?>>United Kingdom</option>
                <option value="UY"<?php echo ($this->shoppingConfig['country']=='UY'?' selected="selected"':''); ?>>Uruguay</option>
                <option value="VU"<?php echo ($this->shoppingConfig['country']=='VU'?' selected="selected"':''); ?>>Vanuatu</option>
                <option value="VA"<?php echo ($this->shoppingConfig['country']=='VA'?' selected="selected"':''); ?>>Vatican City State</option>
                <option value="VE"<?php echo ($this->shoppingConfig['country']=='VE'?' selected="selected"':''); ?>>Venezuela</option>
                <option value="VN"<?php echo ($this->shoppingConfig['country']=='VN'?' selected="selected"':''); ?>>Vietnam</option>
                <option value="WF"<?php echo ($this->shoppingConfig['country']=='WF'?' selected="selected"':''); ?>>Wallis and Futuna Islands</option>
                <option value="YE"<?php echo ($this->shoppingConfig['country']=='YE'?' selected="selected"':''); ?>>Yemen</option>
                <option value="ZM"<?php echo ($this->shoppingConfig['country']=='ZM'?' selected="selected"':''); ?>>Zambia</option>
            </select>
        </div>  
        </fieldset>

        
    </div>

    <div class="block2">
        
        <fieldset><legend>{%Payment%}</legend>
            <div style="float:left; width: 48%; margin: 0px 1%;">
                <p><label>{%Currency%}: </label>
                    <select name="currency" id="currency" style="width: 80px;">
                    <option value="USD"<?php echo ($this->shoppingConfig['currency']=='USD'?' selected="selected"':''); ?>>USD</option>
                    <option value="AUD"<?php echo ($this->shoppingConfig['currency']=='AUD'?' selected="selected"':''); ?>>AUD</option>
                    <option value="BRL"<?php echo ($this->shoppingConfig['currency']=='BRL'?' selected="selected"':''); ?>>BRL</option>
                    <option value="GBP"<?php echo ($this->shoppingConfig['currency']=='GBP'?' selected="selected"':''); ?>>GBP</option>
                    <option value="CAD"<?php echo ($this->shoppingConfig['currency']=='CAD'?' selected="selected"':''); ?>>CAD</option>
                    <option value="CZK"<?php echo ($this->shoppingConfig['currency']=='CZK'?' selected="selected"':''); ?>>CZK</option>
                    <option value="DKK"<?php echo ($this->shoppingConfig['currency']=='DKK'?' selected="selected"':''); ?>>DKK</option>
                    <option value="EUR"<?php echo ($this->shoppingConfig['currency']=='EUR'?' selected="selected"':''); ?>>EUR</option>
                    <option value="HKD"<?php echo ($this->shoppingConfig['currency']=='HKD'?' selected="selected"':''); ?>>HKD</option>
                    <option value="HUF"<?php echo ($this->shoppingConfig['currency']=='HUF'?' selected="selected"':''); ?>>HUF</option>
                    <option value="ILS"<?php echo ($this->shoppingConfig['currency']=='ILS'?' selected="selected"':''); ?>>ILS</option>
                    <option value="JPY"<?php echo ($this->shoppingConfig['currency']=='JPY'?' selected="selected"':''); ?>>JPY</option>
                    <option value="MXN"<?php echo ($this->shoppingConfig['currency']=='MXN'?' selected="selected"':''); ?>>MXN</option>
                    <option value="NZD"<?php echo ($this->shoppingConfig['currency']=='NZD'?' selected="selected"':''); ?>>NZD</option>
                    <option value="NOK"<?php echo ($this->shoppingConfig['currency']=='NOK'?' selected="selected"':''); ?>>NOK</option>
                    <option value="PHP"<?php echo ($this->shoppingConfig['currency']=='PHP'?' selected="selected"':''); ?>>PHP</option>
                    <option value="PLN"<?php echo ($this->shoppingConfig['currency']=='PLN'?' selected="selected"':''); ?>>PLN</option>
                    <option value="SGD"<?php echo ($this->shoppingConfig['currency']=='SGD'?' selected="selected"':''); ?>>SGD</option>
                    <option value="SEK"<?php echo ($this->shoppingConfig['currency']=='SEK'?' selected="selected"':''); ?>>SEK</option>
                    <option value="CHF"<?php echo ($this->shoppingConfig['currency']=='CHF'?' selected="selected"':''); ?>>CHF</option>
                    <option value="TWD"<?php echo ($this->shoppingConfig['currency']=='TWD'?' selected="selected"':''); ?>>TWD</option>
                    <option value="THB"<?php echo ($this->shoppingConfig['currency']=='THB'?' selected="selected"':''); ?>>THB</option>
                    </select>
                </p>
                <p><label>{%Gateway%}: </label>
                    <select name="gateway" id="gateway" style="width: 80px" onchange="if(this.options[this.selectedIndex].value == ''){this.form.quote.checked=true;document.getElementById('settingsforpaypal').style.display='none';}else{this.form.quote.checked=false;document.getElementById('settingsforpaypal').style.display='block';}">
                    <option value=""<?php echo ($this->shoppingConfig['gateway']==''?' selected="selected"':''); ?>>select</option>
                    <option value="paypal"<?php echo ($this->shoppingConfig['gateway']=='paypal'?' selected="selected"':''); ?>>PayPal</option>
                    </select>
                </p>
            </div>

            <div style="float:left; width: 48%; margin: 0px 1%;">
                <p id="quote-hint" style="float:left;width: 85%;text-align: justify">{%Check this box if you want to offer your clients the option of asking for a%}
                <label>{%Quote%}:</label><p>
                    <input type="checkbox" name="quote" id="quote" style="float:right; margin:15px 5px 0px 0px;" onmouseover="$('#quote-hint').css('color','red');" onmouseout="$('#quote-hint').css('color','#7C7C7C');" <?php echo ($this->shoppingConfig['quote']=='1'?'checked="checked"':''); ?> />

            </div>
        </fieldset>
          <div id="settingsforpaypal" <?php echo $this->shoppingConfig['gateway']=='paypal'?'style="display:block;"':''; ?>>
            <fieldset><legend>{%Paypal Settings%}</legend>
            <?php $settingsPayPal = unserialize($this->shoppingConfig['paypal']); ?>
            <p><label>{%Email%}:</label> <input type="text" name="paypalemail" id="paypalemail" value="<?php echo $settingsPayPal['email']; ?>" /></p>
            <p><label>{%API Signature%}:</label> <input type="text" name="paypalsignature" id="paypalsignature" value="<?php echo $settingsPayPal['signature']; ?>"/></p>
            <p><label>{%API User%}:</label> <input type="text" name="paypaluser" id="paypaluser" value="<?php echo $settingsPayPal['user']; ?>" /></p>
            <p><label>{%API Password%}:</label> <input type="text" name="paypalpassword" id="paypalpassword" value="<?php echo $settingsPayPal['password']; ?>" /></p>
   		  </fieldset>
	      </div>
        		
    </div><!--  end block2 div -->
    <div style="bottom:0;margin:5px 15px;position:absolute;"><!-- Begin PayPal Logo -->
        <a href="https://www.paypal.com/us/mrb/pal=4E7GQK85JKSBA" target="_blank">
            <img width="468" height="60" src="http://images.paypal.com/en_US/i/bnr/paypal_mrb_banner.gif" border="0" alt="Sign up for PayPal and start accepting credit card payments instantly." />
        </a>
    </div><!-- End PayPal Logo -->
   	<input type="submit" name="submit" value="{%Save%}" class="formsubmit"/>

</form>

</div>